//
//  LYViewController.m
//  RequestManager
//
//  Created by LiTengFei on 11/14/2015.
//  Copyright (c) 2015 LiTengFei. All rights reserved.
//

#import "LYViewController.h"

@interface LYViewController ()

@end

@implementation LYViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    [RequestOperationManager startWithBaseURL:@"http://192.168.2.104:3002"];
    
    ParameterCreator * CREATOR = [ParameterCreator defaultCreator];
    [CREATOR addKey:@"phone" value:@"18668182736"];
    [CREATOR addKey:@"password" value:@"123456" md5:YES];
    
    NSLog(@"%@",CREATOR.params);
    
    [[RequestOperationManager defaultManager] get:@"/users/loginFilter" params:CREATOR.params complete:^(PYResult *result) {
        
    } error:^(PYError *error) {
        
    } analyBlock:^PYResult *(NSDictionary *dictionary) {
        PYResult * result = [PYResult resultWithDictionary:dictionary];
        
        return result;
    }];
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
